home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / ip / ka9q / MNetsrc.hqx / Mac TCP_IP Source v.33 / mac_atdump.c < prev    next >
C/C++ Source or Header  |  1989-03-08  |  455b  |  28 lines

  1. #include <stdio.h>
  2. #include "global.h"
  3. #include "mbuf.h"
  4. #include "mac_AT.h"
  5. #include "trace.h"
  6.  
  7.     extern int tcptrcflg;
  8.     extern FILE *trcwndp;
  9.  
  10. at_dump(bpp)
  11. struct mbuf **bpp;
  12. {
  13.     struct    appletalk ap;
  14.  
  15.     ntohat(&ap,bpp);
  16.     fprintf(trcwndp,"AppleTalk: %0x->%0x type 0x%x len %u\r\n",
  17.             ap.source,ap.dest,ap.type,APPLEADDRLEN + len_mbuf(*bpp));
  18.     switch(ap.type){
  19.         case AIP_TYPE:
  20.             ip_dump(bpp);
  21.             break;
  22.         case AARP_TYPE:
  23.             arp_dump(bpp);
  24.             break;
  25.     }
  26. }
  27.  
  28.